package org.kernely.mail.service;

import org.kernely.security.persistence.UserDetails;

public interface KernelyMailService {
	/**
	 * Send a mail to the recipients.
	 * @param mail The mail to send.
	 * @param recipientsMails The mail of the recipients.
	 */
	void sendMail(KernelyMailPreparation mail, final String ... recipientsMails);

	/**
	 * Send a mail to the recipients.
	 * @param mail The mail to send.
	 * @param recipients The recipients.
	 */
	void sendMailToUser(KernelyMailPreparation mail, final UserDetails ... recipients);
}
